package com.ndp.fb.rdb.model;

import com.ndp.fb.rdb.annotation.Column;
import com.ndp.fb.rdb.annotation.ColumnType;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * 系统业务日志表
 *
 * Created by evan on 2016/7/15.
 */
@Setter
@Getter
@NoArgsConstructor
public class TLog implements Serializable {

    private Long id;
    private String userId;
    private String logType;
    private String logLevel;
    private String eventPlace;
    private String logDesc;

    @Column(type = ColumnType.Time)
    private Date eventTime;

    public TLog(String userId, String logType, String logLevel, String eventPlace, String logDesc, Date eventTime) {
        this.userId = userId;
        this.logType = logType;
        this.logLevel = logLevel;
        this.eventPlace = eventPlace;
        this.logDesc = logDesc;
        this.eventTime = eventTime;
    }


}
